//
//  SimpleDB.h
//  cTypica
//
//  Created by David Kavanagh on 3/24/09.
//  Copyright 2009 directThought. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "AWSQueryConnection.h"

@protocol DomainListProtocol;

@interface SimpleDB : AWSQueryConnection {
}

- (id)initWithAccessId:(NSString *)aId secretKey:(NSString *)sKey;

- (id)initWithAccessId:(NSString *)aId secretKey:(NSString *)sKey hostName:(NSString *)hName;

- (void)listDomains:(int)maxNumberOfDomains receiver:(id<DomainListProtocol>)receiver;

@end

// for receiving messages about domains
@protocol DomainListProtocol
@optional
- (void)startNewDomainList;
@required
// This method must return true to keep receiving data
- (BOOL)domainsReady:(NSArray *)domainList;
@optional
- (void)endNewDomainList;
@end